package org.emergency.framework.service.oa;

import java.util.List;

import javax.servlet.ServletContext;

import org.emergency.framework.model.TbPermission;
import org.emergency.framework.model.TbRole;
import org.emergency.framework.service.IGenericServiceInterface;

public interface ITbPermissonService extends IGenericServiceInterface<TbPermission>{

	/**
	 * 查找所有permisson
	 * @return
	 */
	List<TbPermission> findAll();

	/**
	 * 通过tbroleid找permisson
	 * @param tbRole
	 * @return
	 */
	List<TbPermission> queryPermissinByRoleId(String roleId);


	/**
	 * 修改roleid所在角色的tbpermissions,
	 * 修改完后，要更新permissionTree和map<>
	 * @param roleId
	 * @param permissionIdStringList
	 */
	void submitRolePermissionList(String roleId,List<String> permissionIdStringList);
	

}
